<%= form_for order_item,
     :url => create_order_item_order_url,
     :remote => true,
     :method => :post do |f|
 %>
<h6><b>新增-预订项</b></h6>
<%= f.hidden_field :order_id %>
<dl class='grid_14'>
  <dt class='grid_2'>
    型号
  </dt>
  <dd class='grid_10'>
    <%= f.autocomplete_field :furniture_code, 
          autocomplete_furniture_code_orders_url,
          :id_element => '#order_item_furniture_name'  %>
  </dd>
</dl>
<dl class='grid_14 '>
  <dt class='grid_2'>
    名称
  </dt>
  <dd class='grid_11'>
    <%= f.autocomplete_field :furniture_name, 
          autocomplete_furniture_name_orders_url  %>
  </dd>
</dl>
<dl class='grid_14'>
  <dt class='grid_2'>
    规格
  </dt>
  <dd class='grid_11'>
    <%= f.text_field :furniture_spec %>
  </dd>
</dl>
<dl class='grid_14'>
  <dt class='grid_2'>
    颜色
  </dt>
  <dd class='grid_11'>
    <%= f.text_field :furniture_color %>
  </dd>
</dl>
<dl class='grid_14'>
  <dt class='grid_2'>
    数量
  </dt>
  <dd class='grid_11'>
    <%= f.text_field :ordered_count %>
  </dd>
</dl>
<dl class='grid_14'>
  <dt class='grid_2'>
    备注
  </dt>
  <dd class='grid_11'>
    <%= f.text_area :remark, :rows => 5 %>
  </dd>
</dl>
<hr/>
<dl class='grid_14'>
  <dd class='grid_11'>
    <%= f.submit '保存' %>
    <%= link_to_function '返回',"$('#item_form').toggle('low')",:id => "new_item_btn", :class => 'button' %>
  </dd>
</dl>
<%end%>
